package com.ontheroad.mysql.activity.mapper;

import com.ontheroad.activity.model.ActivityTypeActModel;
import com.ontheroad.activity.model.ActivityTypeModel;
import org.apache.ibatis.annotations.Param;
import org.mybatis.mapper.interfaces.GenericMapper;

import java.util.List;


/**
 * ActivityTypeActDAO接口
 *
 * @author admin
 */
public interface ActivityTypeActMapper extends GenericMapper<ActivityTypeActModel,Integer>{

    List<ActivityTypeModel> findModelsByActivityId(Integer activityId);

    List<Integer> getActivityIdsByType(Integer type);

    void saveActTypes(@Param("actTypes") List<Integer> actTypes, @Param("activityId") Integer activityId);

    //------------------请在此添加自定义方法（开始）------------------
	//------------------请在此添加自定义方法（结束）------------------

    
}
